﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolCode.Services
{
    public interface  IExportService<T>
    {
        string Export(List<T> list, out ExportResult message);
    }


    public enum ExportResult
    {
        [AttachString("发生未知错误!无法导出")]
        Unknown,
        [AttachString("导出成功！")]
        Success,
        [AttachString("模板文件丢失!无法导出")]
        TemplateNotFound,
        [AttachString("文件已经存在")]
        FileExist,
        [AttachString("导出的数据为空!")]
        Empty,
    }

}
